import axios from '@/services/api'

export function getRoleList(params) {
  return axios.post('/system/role/list', params)
}


export function getRoleListAll(params) {
  return axios.post('/system/role/listAll', params)
}



export function addRole(data) {
  return axios.post('/system/role/add', data)
}

export function updateRole(data) {
  return axios.post('/system/role/update', data)
}

export function deleteRole(ids) {
  return axios.post('/system/role/delete',  ids )
}

export function getRoleById(id) {
  return axios.post('/system/role/selectByPrimaryKey', 'id='+id )
}